import numpy as np
data = np.array([[1,2,3],[4,5,6]])
float_data = data.astype(np.float32)
float_data.dtype.name
print(float_data)

str_data = np.array(['1','2','3'])
int_data = str_data.astype(np.int32)
int_data
print(str_data)

float_data = np.array([1.2,2.3,3.4])
int_data= float_data.astype(np.int32)
int_data
print(int_data)